<template>
  <div class="at-box">
    <slot name="header">
      <div class="at-box-header">
        <div class="at-box-title">
          <slot name="title">{{ title }}</slot>
        </div>
        <div class="at-box-extra">
          <slot name="extra"></slot>
        </div>
      </div>
    </slot>
    <div class="at-box-body">
      <slot></slot>
    </div>
  </div>
</template>
<script setup>
const props = defineProps({
  title: String,
})
</script>
<style lang="scss">
.at-box {
  margin-bottom: var(--gutter);
}
.at-box-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  .at-box-title {
    font-size: 16px;
    color: #000;
  }
}
</style>
